
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>上传图片</title>
</head>
<script type="text/javascript">
    function run(){
        var imgId=document.getElementById("img");
        if(imgId.style.display=="block")
            imgId.style.display="none";
        else
            imgId.style.display="block";
    }

</script>
<body>
<!--<form name="frm" method="post" action="/admin.php?c=article&a=upload" enctype="multipart/form-data">-->
    <input name='upfile' value="" type='file'/> {$error}
    <br>
    <span style="color: red;">{$article}</span>
    <img src="{$image.i_href}" width="300" height="200" id="img" alt=""/>

    <br><br>
    <div class="am-form-group" >
        <div class="am-u-sm-12 am-u-sm-push-12">
            <button type="submit" onclick="run()" class="am-btn am-btn-primary tpl-btn-bg-color-success ">
                上传
            </button>
        </div>
    </div>

<!--</form>-->


</body>
</html>